<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<% String check = (String)session.getAttribute("id");
	String checkPwd = (String)session.getAttribute("pwd");
	
out.println(check);
out.println(checkPwd);%>

<br>Cookie<br>
<%
Cookie[] cookies = request.getCookies();
%>
<%
if(cookies!=null){
for(Cookie cookie : cookies){
	if(cookie.getName().equals("id")){
String id = cookie.getValue();
	out.println(id);
		}
	}
}
%>

<a href="index.jsp">hoMe</a>
</body>
</html>